home *** CD-ROM | disk | FTP | other *** search
/ Windows 3-Pak 2 - Disc 2 / Infomagic - Windows 3-Pak Volume 2 (Disc 2 of 3).iso / Telnet-Clients / nt3242a.exe / cyberspc.txt < prev    next >
Text File  |  1995-09-05  |  2KB  |  45 lines

  1. # Script to Login to cyberspc.mb.ca Internet Provider (Dialup PPP Account)
  2. # Will also work with Slip by replacing "ppp" with "slip"
  3. # For a shell account remove "ppp^M" and replace with "^M"
  4. # Make sure you edit the directories at the bottom of the script
  5. count 5
  6. loop:
  7.     if !count
  8.         hangup
  9.         display "^M^JAborting Script, Maximum count exceeded^M^J"
  10.         abort
  11.     endif
  12.     expect 10 "login:"
  13.     if !expect
  14.         hangup
  15.         redial
  16.         goto loop
  17.     endif
  18. output "put your login name here, keep the quotes^M"
  19. expect 15 "Password:"
  20. output "put your pasword here, keep the quotes^M"
  21. expect 15 "(vt100) "
  22. output "ppp^M"
  23. sleep 1
  24. output "^M"
  25.  
  26. save "slip-port=0.0.0.0"           "Trumpet Winsock" c:\internet\trumpwsk.ini
  27. save "slip-baudrate=^S"            "Trumpet Winsock" c:\internet\trumpwsk.ini
  28. save "netmask=255.255.255.0"       "Trumpet Winsock" c:\internet\trumpwsk.ini
  29. save "gateway=198.163.240.10"      "Trumpet Winsock" c:\internet\trumpwsk.ini
  30. save "dns=198.163.240.10"          "Trumpet Winsock" c:\internet\trumpwsk.ini
  31. save "domain=cyberspc.mb.ca"       "Trumpet Winsock" c:\internet\trumpwsk.ini
  32. save "slip-enabled=1"              "Trumpet Winsock" c:\internet\trumpwsk.ini
  33. save "slip-handshake=1"            "Trumpet Winsock" c:\internet\trumpwsk.ini
  34. save "slip-compressed=1"           "Trumpet Winsock" c:\internet\trumpwsk.ini
  35. save "ppp-enabled=1"               "Trumpet Winsock" c:\internet\trumpwsk.ini
  36. save "mtu=1500"                    "Trumpet Winsock" c:\internet\trumpwsk.ini
  37. save "rwin=4096"                   "Trumpet Winsock" c:\internet\trumpwsk.ini
  38. save "mss=1460"                    "Trumpet Winsock" c:\internet\trumpwsk.ini
  39. save "dial-option=0"               "Trumpet Winsock" c:\internet\trumpwsk.ini
  40.  
  41. display "^J^MStarting tcpman.exe^J^M"
  42. show 2
  43. exec \internet\tcpman.exe
  44. online
  45.